import request from '@/utils/request.js'

// 读好书列表
export function bookList(query) {
    return request({
        url: '/pc/book/list',
        method: 'post',
        data: query
    })
}

// 读好书首页列表
export function bookHome(query) {
    return request({
        url: '/pc/book/home',
        method: 'post',
        data: query
    })
}

// 读好书类型
export function bookCategory(query) {
    return request({
        url: '/pc/book/category',
        method: 'get',
        data: query
    })
}

// 章节内容
export function bookContent(query) {
    return request({
        url: `/pc/book/content?id=${query}`,
        method: 'get',
    })
}

// 书籍目录
export function bookDirectory(query) {
    return request({
        url: '/pc/book/directory',
        method: 'post',
        data: query
    })
}

// 书籍详情
export function bookDetail(query) {
    return request({
        url: '/pc/book/detail',
        method: 'post',
        data: query
    })
}




